package com.yunsom.testdemo.java8.stream;

import java.time.LocalDateTime;

/**
 * @author Xbao
 * @version 1.0
 * @description
 * @date 2021/3/15 18:56
 */
public class Student {

  // 主键
  private String id;
  // 姓名
  private String name;
  // 年龄
  private int age;
  /**
  性别
   */
  private String sex;
  // 成绩
  private Double score;

  private LocalDateTime birth;

  public Student(String id, String name, int age, String sex, Double score, LocalDateTime birth) {
    this.id = id;
    this.name = name;
    this.age = age;
    this.sex = sex;
    this.score = score;
    this.birth = birth;
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public int getAge() {
    return age;
  }

  public void setAge(int age) {
    this.age = age;
  }

  public String getSex() {
    return sex;
  }

  public void setSex(String sex) {
    this.sex = sex;
  }

  public Double getScore() {
    return score;
  }

  public void setScore(Double score) {
    this.score = score;
  }

  public LocalDateTime getBirth() {
    return birth;
  }

  public void setBirth(LocalDateTime birth) {
    this.birth = birth;
  }

  public Student() {
  }

  @Override
  public String toString() {
    return "Student{" +
        "id='" + id + '\'' +
        ", name='" + name + '\'' +
        ", age=" + age +
        ", sex='" + sex + '\'' +
        ", score=" + score +
        ", birth=" + birth +
        '}';
  }
}
